using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace team33_ass3
{
    class Bullet : GameObject
    {
        private Vector3 direction;

        public Bullet(Model model, Vector3 pos, Vector3 direction)
            : base(model, pos)
        {
            this.direction = direction;
            scaleValue = 0.02f;
        }

        public void Update(GameTime gameTime)
        {
            float speed = 0.3f;
            double time = gameTime.ElapsedGameTime.TotalMilliseconds;
            this.position += (direction * speed * (float)time);
        }
    }
}
